package com.qianfeng.zhangwei.volley;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.Button;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 *
 *
 *
 *
 */

public class VolleyActivity extends ActionBarActivity implements View.OnClickListener {
    @Bind(R.id.smiple_btn)
    Button smipleBtn;
    @Bind(R.id.manager_btn)
    Button managerBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_volley);
        ButterKnife.bind(this);
    }


    @Override
    public void onClick(View v) {
        Intent intent = null;
        int id = v.getId();
        if (id == R.id.smiple_btn) {
            intent = new Intent(this, VolleySmipleActivity.class);
        } else if (id == R.id.manager_btn) {
            intent = new Intent(this, VolleyManagerActivity.class);
        }
        startActivity(intent);
    }
}
